package com.baofu.paycore.service.facade.model.AccountFreeze;

import com.baofu.paycore.service.facade.model.PayBaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.util.Date;

/**
 * <p>体现冻结解冻接口
 * </p>
 * User:ames wang  Date: 2017/6/8
 */
@Getter
@Setter
@ToString(callSuper = true)
public class UnfreezeDTO extends PayBaseDTO {
    private static final long serialVersionUID = 966466623605844215L;

    /**
     * 原支付单号
     */
    private String origPayNo;


    /**
     * 账户号
     */
    @NotBlank(message = "资金账户号不能为空")
    @Length(max = 32, message = "资金账户号最大长度不能超过16")
    private String accountNo;

    /**
     * 手续费是否退回(默认不退回)
     *
     * TRUE:退回手续费
     * FALSE:不退手续费
     */
    @Pattern(regexp = "(TRUE)|(FALSE)",message = "手续费是否退回标示有误")
    private String refundFeeFlag;

}
